package top.yaofengqiao.springcloudsimple.demo.biz.domain.product.service;

import org.springframework.stereotype.Service;
import top.yaofengqiao.springcloudsimple.demo.biz.domain.product.model.entity.ProductEntity;
import top.yaofengqiao.springcloudsimple.demo.biz.domain.product.repository.IProductRepository;

import javax.annotation.Resource;

/**
 * @author yfq
 * @date 2024/6/14 11:37
 * @description
 */
@Service
public class ProductService implements IProductService {
    @Resource
    private IProductRepository productRepository;

    @Override
    public ProductEntity queryProductById(String productId) {
        return productRepository.queryProductById(productId);
    }

}
